/**
 * 根组件
 */
import React, {Component} from 'react'
import {HashRouter, Switch, Route} from 'react-router-dom'

import Admin from './pages/admin/admin'
import Login from './pages/login/login'
class App extends Component{
  render(){
    return(
      <HashRouter>
        <Switch>
          <Route path="/login" component={Login} />
          <Route path="/" component={Admin} />
        </Switch>
      </HashRouter>
    )
  }
}
export default App